﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Location.API.Model
{
    /// <summary>
    /// 小区位置
    /// </summary>
    public class ResidentialAreasLocation
    {
        [BsonIgnoreIfDefault]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }
        /// <summary>
        /// 小区Id
        /// </summary>
        public string ResidentialAreasId { get; set; }
        /// <summary>
        /// 位置Id
        /// </summary>
        [BsonRepresentation(BsonType.ObjectId)]
        public string LocationId { get; set; }

        public ResidentialAreasLocation(string residentialAreasId,string locationId)
        {
            this.ResidentialAreasId = residentialAreasId;
            this.LocationId = locationId;
        }
    }
}
